Title Banner

Previous Book Contents Book Index Next

Inside Macintosh: QuickDraw GX Printing /
Chapter 2 - Core Printing Features / Core Printing Features Reference
Functions / Printing With QuickDraw GX


GXGetJobPageRange

You can use the GXGetJobPageRange function to obtain a user-specified page range.

void GXGetJobPageRange (gxJob aJob, long *firstPage, 
                        long *lastPage);
aJob
A reference to the job object for which to retrieve the page range.
firstPage
On return, the first page the user wants to print.
lastPage
On return, the last page the user wants to print.
DESCRIPTION
When the user requests printing, you should call the GXGetJobPageRange function to obtain the user-specified page range. The user specifies a page range in the Print dialog box.

You can set the firstPage parameter or the lastPage parameter to nil to ignore the result.

RESULT CODES
gxSegmentLoadFailedErrA required code segment could not be found, or there was not enough memory to load it.
collectionItemNotFoundErrThe collection object item cannot be located.
SEE ALSO
Listing 2-5 on page 2-21 and Listing 2-6 on page 2-23 show how to use the GXGetJobPageRange function to obtain the user-specified page range.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
7 JUL 1996




Navigation graphic, see text links

Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help